<?php

namespace app\common\model\order;

use app\common\model\BaseModel;

/**
 * 船票订单携带儿童信息模型
 * 记录用户无座位协童登记数据
 */
class ShipOrderTakeChildren extends BaseModel
{
    protected $name = 'ship_order_take_children';
    protected $pk = 'id';

    protected $autoWriteTimestamp = 'int';
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';

    protected $type = [
        'create_time' => 'timestamp',
        'update_time' => 'timestamp',
    ];
    
    /**
     * 字段验证规则
     * @var array
     */
    protected $schema = [
        'id'            => 'int',
        'ship_order_id' => 'int',
        'children_info' => 'string',
        'create_time'   => 'timestamp',
        'update_time'   => 'timestamp',
    ];
}